﻿using System;
using System.Linq;
using System.Collections.Generic;

using SimpleMvvmToolkit;

namespace ToolRental.Client.SMvvm.Customer
{
    public class Order : ModelBase<Order>
    {
        private int _borrowId;
        public int BorrowId
        {
            get { return _borrowId; }
            set
            {
                _borrowId = value;
                NotifyPropertyChanged(m => m.BorrowId);
            }
        }

        private string _brandName;
        public string BrandName
        {
            get { return _brandName; }
            set
            {
                _brandName = value;
                NotifyPropertyChanged(m => m.BrandName);
            }
        }

        private string _typeName;
        public string TypeName
        {
            get { return _typeName; }
            set
            {
                _typeName = value;
                NotifyPropertyChanged(m => m.TypeName);
            }
        }

        private string _availability;
        public string Availability 
        { 
            get { return _availability; }
            set
            {
                _availability = value;
                NotifyPropertyChanged(m => m.Availability);
            }
        }

        private bool _ordered;
        public bool Ordered
        {
            get { return _ordered; }
            set
            {
                _ordered = value;
                NotifyPropertyChanged(o => o.Ordered);
            }
        }

        private bool _borrowed;
        public bool Borrowed
        {
            get { return _borrowed; }
            set
            {
                _borrowed = value;
                NotifyPropertyChanged(b => b.Borrowed);
            }
        }
    }
}
